﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ClickScript : MonoBehaviour
{
    bool flag=false;

    public void ClickMethod(string name) {
        if (flag) {
            Debug.Log("click ..1"+name + flag);
            flag = !flag;
            return;
        }
        if (!flag) {
            Debug.Log("click ..2" + flag);
            flag = !flag;
            return;
        }
    
    }

}
